package test_2024_4_9_02_java;


public class Random {
	public class RandomInRange {
	    public static void main(String[] args) {
	        int min = 1; 
	        int max = 10; 
	        generateRandomInRange(min, max);
	    }

	    public static void generateRandomInRange(int min, int max) {
	        Random random = new Random();
	        int randomNumber = (random).nextInt(max - min + 1) + min;
	        System.out.println("范围在 " + min + " 到 " + max + " 之间的随机整数: " + randomNumber);
	    }
	}

	public int nextInt(int i) {
		// TODO 自动生成的方法存根
		System.out.println("sss");
		return 0;
	}
}
